package com.liu.shop.feign;

import com.liu.shop.common.vo.UserCarVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "shop-shopcar", path = "/shopcar")
public interface CarService {
    @PostMapping("/getUserCar")
    UserCarVo getUserCar(@RequestParam("key") String key);

    @GetMapping("/clearUserCar")
    void clearUserCar(@RequestParam("uid") String uid, @RequestParam("selectGid") String selectGid);
}
